package com.c2soft.ncmx.exch.config;

import javax.sql.DataSource;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.datasource.DriverManagerDataSource;

import com.c2soft.ncmx.exch.dao.TradeMgmtDAO;

@Configuration
public class JavaConfig {
	
//	@Bean
//	public DataSource dataSource() {
//		DriverManagerDataSource dataSource = new DriverManagerDataSource();
//		dataSource.setDriverClassName("com.mysql.jdbc.Driver");
//		dataSource.setUrl("jdbc:mysql://localhost:3306/ncmxDb");
//		dataSource.setUsername("ncmx");
//		dataSource.setPassword("password");
//		return dataSource;
//	}
//		
	@Bean
	public TradeMgmtDAO tradeMgmtDAO() {
		return new TradeMgmtDAO();
	}
}
